<?php if(null !== $this->_namespace): ?>
namespace <?=$this->_namespace;?>;
<?php endif; ?>
<?php foreach($this->_uses as $use): ?>
use <?=$use;?>;
<?php endforeach; ?>

class <?=$this->_name;?><? if(null !== $this->_extends){echo ' extends '.$this->_extends;}?>{

<?php foreach($this->_constants as $constant): ?>
<?=$constant->render()."\n\n";?>
<?php endforeach; ?>
<?php foreach($this->_properties as $property): ?>
<?=$property->render()."\n\n";?>
<?php endforeach; ?>
<?php foreach($this->_methods as $method): ?>
<?=$method->render()."\n\n";?>
<?php endforeach; ?>
}